<?php
use zhtfrontend\assets\AppAsset;
use yii\helpers\Html;
use doumiaoduo\layer\LayerAsset;
AppAsset::register($this);
LayerAsset::register($this);

?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <?= Html::csrfMetaTags() ?>
    <?php $this->head() ?>
    <script src="/scripts/jquery.jqprint-0.3.js"></script>
</head>
<body class='zx-dialog-bg'>
<?php $this->beginBody() ?>
<div  id="print" style="display: none">
    <?=$str?>
</div>
<script type="text/javascript">
    <?php if(!empty($param)&&is_array($param)){?>
    if(confirm('确定要打印吗？')){
        $("#print").jqprint();
    }
    <?php } ?>
    layer.config({
        extend: ['skin/customskin/style.css']//加载您的扩展样式
    });
    <?php if($is_dialog){?>
        var index=layer.msg("<?= nl2br(Html::encode($message))?>",{id:'layer-msg',skin: 'layui-msg-customskin'});
        setTimeout(function(){top.location.href='<?= $url; ?>';var index = parent.layer.getFrameIndex('layer-iframe'); parent.layer.close(index);},<?= $delay * 2000; ?>);
    <?php }else{?>
          layer.msg("<?= nl2br(Html::encode($message))?>",{id:'layer-msg-t',skin: 'layui-msg-customskin'});
    <?php }?>

</script>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>




